
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<html>
<head>
    <title>Title</title>
    <link type="text/css" rel="stylesheet" href="${pageContext.servletContext.contextPath}/css/style.css" />
    <link type="text/css" rel="stylesheet" href="${pageContext.servletContext.contextPath}/css/index.css" />
    <script src="${pageContext.servletContext.contextPath}/webjars/jquery/3.4.1/jquery.js"></script>
    <script src="${pageContext.servletContext.contextPath}/js/add.js"></script>

</head>
<body>
<div id="voteManage" class="box">
    <h2>添加新投票</h2>
    <div class="content">
        <form method="post" >
            <dl>
                <dt>投票内容：</dt>
                <dd>
                    <input type="hidden" name="entityId" value=" "/>
                    <input type="text" class="input-text" name="subject.title"  value=" "/>
                </dd>
                <dt>投票类型：</dt>
                <dd>
                    <input type="radio" name="subject.type"  value="1" />单选
                    <input type="radio" name="subject.type" value="2" />多选
                </dd>
                <dt>投票选项：</dt>
                <dd id="voteoptions">
                    <p><input type="text" class="input-text" name="options" /><a class="del" >删除</a></p>
                    <p><input type="text" class="input-text" name="options" /><a class="del" >删除</a></p>
                </dd>
                <dt>
                    <dd id="errorMsg"></dd>
                </dt>
                <dd class="button">
                    <input type="image" src="/images/button_submit.gif" id="btnsave" />
                    <a class="btnaddoption">增加选项</a>
                    <a>取消操作</a>
                </dd>
            </dl>
        </form>
    </div>
</div>
<div id="footer" class="wrap">
    北大青鸟 &copy; 版权所有
</div>
</body>
</html>
